package com.kantboot.business.talent.web.controller;

import com.kantboot.business.talent.service.IBusTalentSeriesService;
import com.kantboot.global.rest.result.CommonSuccessStateCodeAndMsg;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business-talent-web/series")
public class BusTalentSeriesController {

    @Resource
    private IBusTalentSeriesService service;

    /**
     * 获取所有人才系列
     */
    @RequestMapping("/getAll")
    public RestResult<Object> getAll() {
        return RestResult.success(service.getAll(), CommonSuccessStateCodeAndMsg.GET_SUCCESS);
    }

    /**
     * 获取所有人才系列及其职级
     */
    @RequestMapping("/getAllHasTitleLevel")
    public RestResult<Object> getAllHasTitleLevel() {
        return RestResult.success(service.getAllHasTitleLevel(), CommonSuccessStateCodeAndMsg.GET_SUCCESS);
    }

}
